# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=python-zope-i18nmessageid
pkgver=6.0.1
pkgrel=2
pkgdesc="Message Identifiers for internationalization"
arch=('loong64' 'x86_64')
url="https://github.com/zopefoundation/zope.i18nmessageid"
license=('ZPL')
depends=('python-setuptools')
checkdepends=('python-zope-testrunner')
source=("$pkgname-$pkgver.tar.gz::https://github.com/zopefoundation/zope.i18nmessageid/archive/$pkgver.tar.gz")
sha512sums=('ae44df92a26f7f7d25853195834d34b6946126ae54a9d742333b504d3ac231f9fbec71b8d5b98e8779e08290b95ac1f22bac3c9afdbbccc0c6c3ccf000f874c6')

build() {
  cd zope.i18nmessageid-$pkgver
  python setup.py build
}

check() {
  cd zope.i18nmessageid-$pkgver
  PYTHONPATH="$PWD/build/lib.linux-$CARCH-cpython-311" python -m zope.testrunner --test-path=src
}

package() {
  cd zope.i18nmessageid-$pkgver
  python setup.py install --root="$pkgdir" --optimize=1
}

# vim:set ts=2 sw=2 et:
